﻿using NearAop.Interfaces;
using System;

namespace NearAop
{
    /// <summary>
    /// 为自动属性添加变更后事件通知(自动实现INotifyPropertyChanged 接口)
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Method)]
    public sealed class AddNotifyPropertyChangedAttribute : Attribute, IAopNotifyPropertyChanged
    {
        /// <summary>
        ///是否在触发事件前做新旧值相等测试
        /// </summary>
        public  bool IsTestEquals { get; set; } = true;
    }
}
